<%@page contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HXNT IP网络质量及应用监测系统</title>
<meta name="author" content="Simon Shu" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/easyui/themes/myself/easyui.css" />
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/easyui/themes/icon.css" />
<%@ include file="../common/taglibs.jsp"%>
<%@ include file="../common/meta.jsp"%>
<script>
	$(function() {
		$("#menuTree").tree({
			url : './list.action',
			animate: true,		
			onClick : function(node) {
				if(node.id == '0') {
					$("#content").attr("src","./menuEdit.action?operate=insertSub&menu.menuId=0");
				} else {
					$("#content").attr("src","./menuEdit.action?menuId=" + node.id);
				}
			},
			onLoadSuccess: function(node) {
				if(node != undefined && node != null) {
					if(node.id == '0') {
						$("#content").attr("src","./menuEdit.action?operate=insertSub&menu.menuId=0");
					} else {
						$("#content").attr("src","./menuEdit.action?menuId=" + node.id);
					}
				}
			}
		});
	});
</script>
</head>
<body class="easyui-layout">
	<div id="tree"
		data-options="region:'west',title:'Menu',split:true,border:false"
		style="padding: 3px 8px 10px 3px; overflow: hidden; margin: 0; width: 250px;">
		<ul class="easyui-tree" id="menuTree" />
	</div>
	<div
		data-options="region:'center',title:'Content',fit:true,border:false"
		style="padding: 5 5 0 5px; background: #edf7ff">
		<iframe id="content" width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" />
	</div>
</body>
</html>
